package cn.ecommerce.course.module.users.dal.dataobject.users;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

import org.apache.ibatis.type.Alias;

@Data

@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_role")  // 表名仍为sys_role，与数据库保持一致
@Alias("UsersRoleDO")
public class RoleDO {


    @TableId(type = IdType.AUTO)
    private Long id;


    private String roleName;


    private String roleCode;


    private String roleDesc;


    private Long createBy;


    private LocalDateTime createTime;


    private Long updateBy;


    private LocalDateTime updateTime;

    private Integer delFlag;
}